$(document).ready(function()
{
    $('.date-picker').datepicker({
        changeYear: true,
        changeMonth: true,
        showWeek: true,
        showButtonPanel: true,
        dateFormat: 'yy-mm',
        onClose: function(dateText, inst) {
            var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
            $(this).datepicker('setDate', new Date(year, month, 1));
        }
    });

    $('.year-picker').datepicker( {
        changeYear: true,
        changeMonth: false,
        showWeek: true,
        showButtonPanel: true,
        dateFormat: 'yy',
        onClose: function(dateText, inst) {
            var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            $(this).datepicker('setDate', new Date(year, 1, 1));
        }
    });
/*
    $("#JURNAL").submit(function(){
        return false;
    });

    $("#BUKUBESAR").submit(function(){
        return false;
    });

    $("#NERACASALDO").submit(function(){
        return false;
    });

    $("#cetak_rencana").click(function()
    {
        window.location = base_url + "br-08/akuntansi/calc_jurnal/";
        //$.call_ajax('br-08/akuntansi/calc_jurnal/', "#JURNAL", null);
    });

    $("#cetak_bukubesar").click(function()
    {
        window.location = base_url + "br-08/akuntansi/calc_bukubesar/";
        //$.call_ajax('br-08/akuntansi/calc_jurnal/', "#JURNAL", null);
    });

   $("#cetak_neracasaldo").click(function()
    {
        window.location = base_url + "br-08/akuntansi/calc_neracasaldo/";
        //$.call_ajax('br-08/akuntansi/calc_jurnal/', "#JURNAL", null);
    });*/
});